<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>
    	<title>用户密码修改</title>   
		<s:include value="../common/source.jsp"></s:include>	
  </head>
  <body>
  
     <script type="text/javascript">
		
	var message = '<s:property value="power" />';
	  if(message!=null&&message!="")
	   {
	   		if(message==1)
			 alert("修改权限成功!");
	   		else
   			{
   			alert("权限修改失败!");
   			}
	   		
	   }
		
		</script>
  <!-- 用户密码修改开始 -->
  <div class="body">
   <div class="content ui-sortable">
          <div class="list">
        修改权限
           </div>
           </div>
 	 <br/>  
 	  <br/>  
 	   <hr style="background-color:#cfe1f9;height:1px;"/>    
 
	<form class="sui-form form-horizontal sui-validate" action="admin/AuthorityAction.action" method="post" enctype="multipart/form-data">
	   <div class="bo-mend2">
	  <table class="sui-table table-vzebra  table0" >
                    <tbody>
                      <tr>
                        <td>用户名</td>
                        <td><s:property value="teacher.name"/></td>
                      </tr>
                       <tr>
                        <td>当前权限</td>
                        <td>
                         <s:if test="teacher.power==0">
                         	学科管理员
                         </s:if>
                         <s:elseif test="teacher.power==1">
                         	方向管理员
                         </s:elseif>
                         <s:elseif test="teacher.power==2">
                         	普通用户
                         </s:elseif>
                        </td>
                      </tr>
                       <tr>
                        <td>权限修改</td>
                        <td> <div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="2" name="teacher1.power" type="hidden"><i class="caret"></i><span>选择权限</span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=2 name="teacher1.power">普通用户</a></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=1 name="teacher1.power">方向管理员</a></li>
                  <li role="presentation" class="active"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value=0 name="teacher1.power">学科管理员</a></li>
                </ul>
              </span>
            </span>
          </div></td>
                      </tr>
                    </tbody> 
                  </table>
                 </div>
	  <div class="control-group button3">
        <label class="control-label"></label>
        <div class="controls">
          <button type="submit" class="sui-btn btn-primary">保存</button>
          <input type="hidden" name="teacher1.teaId" value="<s:property value="teacher.teaId"/>"/>
    	  <a href="admin/memberInfo.action" class="sui-btn">返回</a>
        </div>
      </div>
	</form>
	</div>

		<!--用户密码修改结束 -->
         
  </body>
</html>
